package com.yunhe.iservice.impl;

import java.math.BigInteger;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunhe.bean.Task;
import com.yunhe.dao.TaskDao;
import com.yunhe.iservice.TaskPostIService;

/**
 * TaskPostIService接口实现类
 * 
 * 实现TaskPostIService接口中的业务处理方法
 * 
 * @author Administrator
 *
 */
@Service
public class TaskPostIServiceImpl implements TaskPostIService{

	@Autowired
	private TaskDao taskdao;
	
    @Override
    public void addTask() {
        // TODO 实现添加业务的方法
        
    }

	@Override
	public List<Task> getTaskById(Integer taskId) {
		// TODO 实现任务信息的查询,并返回集合
		List<Task> t=taskdao.getTaskById(taskId);
		return t;
	}

	@Override
	public List<Task> getTask() {
		// TODO Auto-generated method stub
		List<Task> allNew = taskdao.getTask();
		return allNew;
	}

	@Override
	public List<Task> getTaskByCreate(String skill) {
		// TODO 根据发布时间查询最新发布的不同领域的任务信息
		List<Task> skillCreatr =taskdao.getTaskByCreate(skill);
		return skillCreatr;
	}

	@Override
	public List<Task> getTaskByCount() {
		// TODO 查询全部的任务信息
		List<Task> skillCount = taskdao.getTaskByCount();
		return skillCount;
	}

}
